<template>
  <div>
    <AirCar></AirCar>
    <RobotArm></RobotArm>
    <Motion></Motion>
  </div>
  
</template>

<script setup>
import { ref, reactive } from 'vue'
import { autoMoveApi } from '@/api/drive-api.js'
import AirCar from './modules/AirCar.vue'
import Motion from './modules/Motion.vue'
import RobotArm from './modules/RobotArm.vue';

const driveForm = reactive({
  targetX: 100,
  targetY: 1000,
  speedX: 10,
  speedY: 10,

})
const speedFormRef = ref()

const onSubmit = () => {
  console.log('submit!', driveForm)
  autoMoveApi(driveForm, response => {
    console.log('持续行驶成功', response);
  },
  (error) => {
    console.log('持续行驶失败', error)
   })
}

const resetForm = (formEl) => { 
  if (!formEl) return; 
  formEl.resetFields(); 
  }
</script>

<style lang="scss" scoped>

</style>